/*
 * TCSS 360 - Winter 2014
 * TESK Software
 */
package view.Papers;

import javax.swing.JPanel;

import javax.swing.JComboBox;

import view.MainFrame;
import javax.swing.JTextPane;
import java.awt.BorderLayout;
import javax.swing.JButton;
import java.awt.Color;
import javax.swing.JScrollPane;
import javax.swing.JList;
import javax.swing.border.TitledBorder;

/**
 * Allows a program chair to assign papers to sub program chairs.
 * 
 * @author Kon
 * @version March 7, 2014
 */
@SuppressWarnings("serial")
public class AssignPapertoSubProgramChairView extends JPanel {

	/** The frame the panel is associated with. */
	private MainFrame my_frame;

	/** 
	 * Constructs the assign papers to sub program chair panel.
	 * @param the_frame the frame to associate the panel with
	 */
	public AssignPapertoSubProgramChairView(MainFrame the_frame) {
		super();
		my_frame = the_frame;
		init();

	}
	
	/**
	 * Sets up the elements of the panel.
	 */
	private void init(){
		setLayout(new BorderLayout(0, 0));
		
		JPanel centerPanel = new JPanel();
		add(centerPanel, BorderLayout.CENTER);
		centerPanel.setLayout(null);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(10, 11, 211, 278);
		centerPanel.add(scrollPane);
		
		JList list = new JList();
		list.setBorder(new TitledBorder(null, "Titles", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(148, 0, 211)));
		scrollPane.setViewportView(list);
		
		JButton btnAssign = new JButton("Assign");
		btnAssign.setBounds(273, 164, 89, 23);
		centerPanel.add(btnAssign);
		
		JTextPane txtpnSubprogramChairs = new JTextPane();
		txtpnSubprogramChairs.setText("SubProgram Chairs");
		txtpnSubprogramChairs.setBounds(273, 78, 89, 20);
		centerPanel.add(txtpnSubprogramChairs);
		
		JComboBox comboBox = new JComboBox();
		comboBox.setBounds(254, 121, 134, 20);
		centerPanel.add(comboBox);
	}
}
